/**************
 *
 * Inspector Time extension to CalendarPopUp.js.  
 * Instead of putting the below code in each html page, it can just live on this one file
 *
 */

var popCal = new CalendarPopup("popupCalDiv");
popCal.setCssPrefix("ITCAL");

//This DIV is needed by CalendarPopup.js.  Writing it here so we don't have to add it on individual pages
document.write('<DIV ID="popupCalDiv" ></DIV>');

//Draws out the link.  Again, just a way to keep us from having to add it on every page
function writeCalLink(fieldName, anchorName) {
	document.write("<A HREF=\"#\" onClick=\"popCal.select("+fieldName+",'"+anchorName+"','MM/dd/yyyy'); return false;\" NAME=\""+anchorName+"\" ID=\""+anchorName+"\">calendar</A>");
}